package com.ckx.service.impl;

import com.ckx.base.PageResult;
import com.ckx.dao.OrderMapper;
import com.ckx.dao.entity.OrderDO;
import com.ckx.dto.OrderQueryDTO;
import com.ckx.dto.OrderRespDTO;
import com.ckx.service.IOrderService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class OrderServiceImpl implements IOrderService {

    @Resource
    private OrderMapper orderMapper;

    @Override
    public PageResult<OrderRespDTO> orderPage(OrderQueryDTO orderQueryDTO) {
        PageResult<OrderDO> pageResult = orderMapper.queryPage(orderQueryDTO);
        return pageResult.convert(OrderRespDTO.class);
    }

}
